<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script type="text/javascript" src="${ctx}/static/js/jquery.min.js"></script>
    <link rel="stylesheet" href="${ctx}/static/css/bootstrap.min.css"/>
    <style>
        body {
            padding-top: 50px;
        }
    </style>
    <title>批量导入结果</title>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1> 批量导入结果 <c:if
                test="${errorMessage == null }"><%--总共：${TOTAL } 成功：${SUCCESSED } 失败：${FAILED }--%></c:if></h1>
    </div>
    <c:if test="${errorMessage != null }">
        <div class="alert alert-danger" role="alert">
                ${errorMessage }
        </div>
    </c:if>
    <c:if test="${errorMessage == null }">
        <div class="table-responsive">
            <form id="listForm" method="post">
                <input type="hidden" id="state" name="state">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <td class="col-md-1">编号</td>
                        <td class="col-md-1">姓名</td>
                        <td class="col-md-1">快递公司</td>
                        <td class="col-md-2">快递单号</td>
                        <td class="col-md-2">下单时间</td>
                        <td class="col-md-2">产品名称</td>
                    </tr>
                    </thead>

                    <tbody>
                    <c:forEach items="${results}" var="data" varStatus="varStatus">
                        <tr>
                            <td class="col-md-1">${data.orderSimpleId}</td>
                            <td class="col-md-1">${data.userName}</td>
                            <td class="col-md-1">${data.postCompany}</td>
                            <td class="col-md-2">${data.postNo}</td>
                            <td class="col-md-2"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss"
                                                                 value="${data.orderTime}"></fmt:formatDate></td>
                            <td class="col-md-2">${data.productName}</td>
                        </tr>
                    </c:forEach>
                    </tbody>

                </table>
            </form>
        </div>
    </c:if>
</div>


</body>
</html>